package b.l.a;

import android.view.View;
import b.i.k.o;
import java.util.ArrayList;
import java.util.Map;
import java.util.Map.Entry;
import java.util.WeakHashMap;

/* compiled from: FragmentTransitionImpl */
public class x implements Runnable {
    public final /* synthetic */ ArrayList a;
    public final /* synthetic */ Map b;

    public x(z zVar, ArrayList arrayList, Map map) {
        this.a = arrayList;
        this.b = map;
    }

    public void run() {
        int size = this.a.size();
        for (int i = 0; i < size; i++) {
            View view = (View) this.a.get(i);
            WeakHashMap weakHashMap = o.a;
            String transitionName = view.getTransitionName();
            if (transitionName != null) {
                for (Entry entry : this.b.entrySet()) {
                    if (transitionName.equals(entry.getValue())) {
                        transitionName = (String) entry.getKey();
                        break;
                    }
                }
                transitionName = null;
                view.setTransitionName(transitionName);
            }
        }
    }
}
